from bottle import request

class InterfazGraficaHtml:

    def obtenerHtml(self):
        return '''<html><head>
            <link href = "static/format.css" rel = "stylesheet" type = "text/css">
            </head>
            <body>
                Ingresar comentario: <br><br>              
                <form method = "POST" action = "/">
                    <input name = "comment" type = "text" />
                    <input type = "submit" />
                </form> '''

    def mostrarResultado(self, resultado):
        res = '''<span class = "Sep">El resultado es: </span>''' + resultado + '''</body></html>'''
        return res

    def obtenerComentario(self):
        return request.forms.get('comment')
